package com.neighbor.neighborhooduser.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.neighbor.neighborhooduser.pojo.UserItems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户物品表 Mapper 接口
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
public interface IUserItemsDao extends BaseMapper<UserItems> {
    IPage<UserItems> getPage(@Param("page") IPage<UserItems> page,
                             @Param(Constants.WRAPPER)Wrapper<UserItems> wrapper);
    UserItems getById(@Param("id") Integer id);

    Integer addViewCount(@Param("id") Integer id);

    Integer updateStatus(@Param("id") Integer id);
}
